package day02_homework;

import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        String path1 = "/myweb/reg";
        String path2 = "/myweb/login";
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入地址：");
        String path = sc.nextLine();
        if (path.equals(path1)) {
            System.out.println("处理注册");
        } else if (path.equals(path2)) {
            System.out.println("处理登录");
        } else {
            System.out.println("输入地址有误");
        }

    }
}
